package controller

import (
	"gf-start-kit/library/base"
	"gf-start-kit/library/router"
	"github.com/gogf/gf/net/ghttp"
)

type ToolController struct {
	base.Controller
}

func init() {
	ctl := new(ToolController)
	router.New("tool", "tool").
		WithIsApiPrefix(false).
		GET("/index", ctl.Index)
}

func (a *ToolController) Index(r *ghttp.Request) {
	_ = r.Response.WriteTpl("json2go.html")
}
